home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / wildcat / gifcat.zip / SCANFILE.BAT < prev    next >
DOS Batch File  |  1992-01-19  |  626b  |  21 lines

  1. REM This is SCANFILE.BAT
  2. echo off
  3. REM you might have ZIPLAB or another gizmo here with something like
  4. REM cd\wc30\wcwork\node1
  5. REM wctest %1 \wc30\none\wctest.cfg
  6. REM and so forth....
  7. REM Our GIF package starts with the next CD command.  Don't forget it!
  8. cd \wc30
  9. if exist gifdesc.sdi del gifdesc.sdi
  10. test4gif %1
  11. if errorlevel 1 goto end
  12. REM errorlevel 1 here means it's not a .GIF file at all
  13. gifdesc -v %1 > gifdesc.sdi
  14. REM an errorlevel 1 here means a defective GIF header (the file's bad)
  15. if errorlevel 1 goto bad
  16. wcgifput %1
  17. goto end
  18. :bad
  19. copy \wc30\all.ok \wc\wcwork\node%WCNODEID%\scanfile.bad
  20. :end
  21.